package cn.cangfei.massage.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * MybatisPlus 配置类
 *
 * @author Lemon  2313812755@qq.com
 * @date 2023/1/19
 */


@EnableTransactionManagement
@Configuration
public class MybatisPlusConfig {

    /**
     * 配置分页插件
     *
     * @return
     */
    @Bean // 成为bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
